package com.comilffo.app.model;

import org.springframework.orm.hibernate3.HibernateTemplate;

import java.util.List;

/**
 * User: agny
 * Date: 24.10.2010 12:54:37
 */
public class HibernateOneroomDao {
    public HibernateOneroomDao(){}

    private List<Oneroom> onerooms;
    private HibernateTemplate hibernateTemplate;


    public void setHibernateTemplate(HibernateTemplate template){
        this.hibernateTemplate = template;
    }

    public List getAllOnerooms(){
        onerooms = hibernateTemplate.find("from Oneroom");
        return onerooms;
    }
}
